package com.cdfy;

import com.cdfy.common.core.domain.model.LoginBody;
import com.cdfy.framework.web.service.SysLoginService;
import org.junit.jupiter.api.Test;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan({"com.cdfy.system.mapper"})
public class CdfyApplication{
    public static void main(String[] args){
      SpringApplication.run(CdfyApplication.class,args);
        LoginBody loginBean=new LoginBody();
        loginBean.setUsername("fff");
        loginBean.setPassword("ff");
        SysLoginService sysLogin=new SysLoginService();
        sysLogin.login(loginBean.getUsername(),loginBean.getPassword());
        System.out.print("1");
    }
    @Test
    public void loginTest(){
        LoginBody loginBean=new LoginBody();
        loginBean.setUsername("fff");
        loginBean.setPassword("ff");
        //SysLoginController sysLogin=new SysLoginController();
        //AjaxResult str=sysLogin.login(loginBean);
        System.out.println("str:");
    }
}
